﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="noticeEdit.aspx.cs" Inherits="PeisongWeb.admin.noticeEdit" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>公告编辑 - 想购网长期采购物流配送系统</title>
     <!--#include file="style.inc"-->
</head>
<body>
    <form id="form1" runat="server">
     <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin_main" style="margin: 10px 0 0 10px;">
        <ext:Panel ID="Panel2" runat="server" Title="公告编辑" BodyStyle="padding:5px 5px 0"
            Width="650" Frame="true" ButtonAlign="Center">
            <Body>
                <ext:Panel ID="Panel3" runat="server">
                    <Body>
                        <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                            <ext:LayoutColumn ColumnWidth=".5">
                                <ext:Panel ID="Panel4" runat="server" Border="false" Header="false">
                                    <Body>
                                        <div id="admin_edit_content">
                                            <ul>
                                                <li>
                                                    <label>
                                                        标 题 *</label>
                                                    <asp:TextBox runat="server" ID="txt_title" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入标题"
                                                        ControlToValidate="txt_title" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </li>
                                                <li>
                                                    <label>
                                                        副 标 题</label>
                                                    <asp:TextBox runat="server" ID="txt_subtitle" MaxLength="50"></asp:TextBox>
                                                </li>
                                                <li>
                                                    <label>
                                                        标题样式 *</label>
                                                    <asp:DropDownList ID="drp_css" runat="server" onchange='javascript:document.getElementById("a_demo").className = this.value;'>
                                                    </asp:DropDownList>
                                                    <a id="a_demo" href="#">示例</a> </li>
                                                <li>
                                                    <label>
                                                        公告来源</label>
                                                    <asp:TextBox runat="server" ID="txt_source" MaxLength="50"></asp:TextBox>
                                                </li>
                                                <li>
                                                    <label>
                                                        内 容</label>
                                                    <asp:TextBox runat="server" ID="txt_context" TextMode="MultiLine" Height="100"></asp:TextBox>
                                                </li>
                                                <li>
                                                    <label>
                                                        置 顶</label>
                                                    <asp:CheckBox runat="server" ID="cbx_isTop" />是 </li>
                                                <li>
                                                    <label>
                                                        显 示</label>
                                                    <asp:CheckBox runat="server" ID="cbx_isShow" />是 </li>
                                                <li>
                                                    <label>
                                                        &nbsp;</label>
                                                    <span style="<%=power>=2?"":"display:none" %>">
                                                    <asp:Button runat="server" ID="btn_Save" Text="保 存" OnClick="btn_Save_Click" /></span>
                                                    <input type="button" id="btn_Return" onclick="window.location.href='noticeList.aspx'" value="返 回" /> 
                                                </li>
                                            </ul>
                                        </div>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                        </ext:ColumnLayout>
                    </Body>
                </ext:Panel>
            </Body>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
